Tegra: Control inclusion of helper code used for asserts
authorAntonio Nino Diaz <[email protected]>
Tue, 28 Mar 2017 12:56:21 +0000 (13:56 +0100)
committerVarun Wadekar <[email protected]>
Wed, 26 Apr 2017 20:55:01 +0000 (13:55 -0700)
One assert depends on code that is conditionally compiled based on the
DEBUG define. This patch modifies the conditional inclusion of such code
so that it is based on the ENABLE_ASSERTIONS build option.

Change-Id: Ic5659a3db8632593b9d2e83dac6d30afd87c131d
Signed-off-by: Antonio Nino Diaz <[email protected]>
Signed-off-by: Varun Wadekar <[email protected]>
plat/nvidia/tegra/soc/t132/plat_psci_handlers.c

index f05f3d0e9f85c5f1cef3fd646d13990bcc19253c..af21c2869ae7a8a38cd38c652781213a3c3038e9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015-2016, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -132,7 +132,7 @@ int tegra_soc_pwr_domain_off(const psci_power_state_t *target_state)
 
 int tegra_soc_pwr_domain_suspend(const psci_power_state_t *target_state)
 {
-#if DEBUG
+#if ENABLE_ASSERTIONS
        int cpu = read_mpidr() & MPIDR_CPU_MASK;
 
        /* SYSTEM_SUSPEND only on CPU0 */